package game.feign;

import common.config.feign.KeepErrMsgConfiguration;
import common.model.request.SendEmailRequest;
import common.model.response.base.Result;
import game.feign.fallback.SystemFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 米泽鹏
 * @since 2022-3-22 下午 10:47
 */
@FeignClient(value = "system", fallbackFactory = SystemFeignFallbackFactory.class, configuration = {KeepErrMsgConfiguration.class})
public interface SystemFeign {

	@RequestMapping(value = "/system/mail/sendEmail", method = RequestMethod.POST)
	Result<?> sendEmail(@RequestBody SendEmailRequest request);

}
